//
//  AppDelegate.h
//  wtshoppingcite
//
//  Created by TW on 14-10-14.
//  Copyright (c) 2014年 TW. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MainViewController.h"
#import "GexinSdk.h"
#import "CustomerModel.h"
#import <CoreLocation/CoreLocation.h>
#import <BaiduMapAPI/BMapKit.h>
#import "Reachability.h"
#import "WXApi.h"

typedef enum {
    SdkStatusStoped,
    SdkStatusStarting,
    SdkStatusStarted
} SdkStatus;

@interface AppDelegate : UIResponder <UIApplicationDelegate,GexinSdkDelegate,BMKGeneralDelegate,WXApiDelegate>

{
    Reachability  *hostReach;
    enum WXScene  scene;
}
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) NSString *deviceToken;
@property (strong, nonatomic) NSArray *kindArray;
@property (strong, nonatomic) GexinSdk *gexinPusher;
@property (strong, nonatomic) NSString *appKey;
@property (strong, nonatomic) NSString *appSecret;
@property (strong, nonatomic) NSString *appID;
@property (strong, nonatomic) NSString *clientId;
@property (assign, nonatomic) SdkStatus sdkStatus;
@property(strong,nonatomic)MainViewController *mainTabVC;
@property(strong,nonatomic)CustomerModel *customerModel;
@property (nonatomic, strong) BMKUserLocation *userlocation;

@property(assign,nonatomic)BOOL isLogin;

- (void)initCustomerModel:(NSDictionary *)modelDic;

+ (AppDelegate *)sharedDelegate;

- (void)initMainViewControllerWithStoryBoardIdentifier:(NSString *)identifier type:(int)selectedIndex pushIn:(UIViewController*)vc;
- (void)pushLoginViewControllerWithStoryBoardIdentifier:(NSString *)identifier pushIn:(UIViewController*)vc;

- (void)initLoginViewControllerWithStoryBoardIdentifier;

@end

